package com.itheima.reggie.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.itheima.reggie.domain.Dish;
import com.itheima.reggie.dto.DishDto;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;

@Mapper
public interface DishMapper extends BaseMapper<Dish> {
    @Insert("insert into dish values (#{id},#{name},#{categoryId},#{price},#{code},#{image},#{description},#{status}" +
            ",#{sort},#{createTime},#{updateTime},#{createUser},#{updateUser},#{isDeleted})")
    int insertDish(DishDto dto);
}
